import type { AppRouteModule } from '/@/router/types';
import { RoleEnum } from '/@/enums/roleEnum';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const charts: AppRouteModule = {
  path: '/fileManagement',
  name: 'FileManagement',
  component: LAYOUT,
  redirect: '/fileManagement/fileIndex',
  meta: {
    orderNo: 80,
    icon: 'ion:bar-chart-outline',
    hideChildrenInMenu: true,
    title: t('routes.demo.fileManagement.fileIndex'),
    roles: [RoleEnum.MERCHANT, RoleEnum.ADMIN, RoleEnum.OTHER],
  },
  children: [
    {
      path: 'fileIndex',
      name: 'FileIndex',

      meta: {
        hideMenu: true,
        title: t('routes.demo.fileManagement.fileIndex'),
        roles: [RoleEnum.MERCHANT, RoleEnum.ADMIN, RoleEnum.OTHER],
      },
      component: () => import('/@/views/locality/fileManagement/fileIndex.vue'),
    },
  ],
};

export default charts;
